function getStorageWithDefault(key, defaultValue) {
  var value = uni.getStorageSync(key);
  if(value=='00'){
	  value = 0;
	  return value;
  }
  if(value==""){
	  setStorageSync(key,defaultValue);
	  return defaultValue;
  }
  return value;
}
 
function setStorageSync(key,value) {
	if(value==0||value==false){
		value = '00';
	}
	uni.setStorageSync(key,value);
}

export default{
	getStorageWithDefault,setStorageSync
}